<template>

    <section>
        <div class="pic" style="">
            <RouterLink :to="`/details/${item.id}`" :title="`${item.title}旅游`" :alt="`${item.title}旅游`">
                <img height="100%" :src="item.picture || item.pic" class="img zoom-image" />
            </RouterLink>

            <!-- <span>特惠</span> -->
        </div>
        <div class="intro">
            <h3>
                <RouterLink :to="`/details/${item.id}`" :title="`${item.title}旅游`" :alt="`${item.title}旅游`">
                    {{ item.title }}
                </RouterLink>


                <span v-for="child in item.themeArray" :key="child.id">
                    <RouterLink :to="`/theme/${child.id}`" :title="`${item.title}旅游`" :alt="`${item.title}旅游`">
                        【{{ child.title }}】
                    </RouterLink>
                </span>
 
            </h3>
            <div class="city_title"> 目的地：
                <span v-for="child in item.areaArray" :key="child.id">
                    {{ child.title }}
                </span>
                <span v-if="item.areaArray.length == 0">深圳</span>
            </div>
            <div class="ts">
                <!-- <volist name="rs.line_feature" id="rs2"><span>{$rs2}</span></volist> -->
            </div>
            <div class="city_title"> 出发城市：
                <span v-for="child in item.cityArray" :key="child.id">
                    {{ child.title }}
                </span>
                <span v-if="item.cityArray.length == 0">深圳</span>
            </div>
            <div class="ts">
                <span>品质</span>
                <span>纯玩</span>
                <!-- <volist name="rs.line_feature" id="rs2"><span>{$rs2}</span></volist> -->
            </div>
            <!-- <div class="date"> 
                出发日期：
                缺少数据

                <volist name="rs.dates" id="rs2"> 
                    <a title="{item.title}旅游"
                        alt="{item.title}旅游" class="a" target="_blank"
                        href="javascript:void(0)">{$rs2}</a> 
                </volist>

                <a title="{item.title}旅游" alt="{item.title}旅游" class="b" target="_blank" href="/line/{$rs.id}.html">更多</a>
            </div> -->
        </div>
        <div class="right">
            <div class="price"><span>￥</span><strong>{{ item.price }}</strong>
                <span>起</span>
            </div>
            <div class="buttom"><a :href="`/details/${item.id}`" :title="`${item.title}旅游`"
                    :alt="`${item.title}旅游`">查看详情<span>
                        <img :title="`${item.title}旅游`" :alt="`${item.title}旅游`"
                            src="https://admin.hqx.com.cn//Public/Travel/images/linelist/q_07.png" width="46" height="33"
                            class="img"></span></a></div>
            <div class="txt"><span>95%</span>满意度 被浏览<span>{{ item.clicks }}</span>次!</div>
        </div>
    </section>

</template>


<script setup>
import { ref, onMounted, computed, } from "vue";

let { item } = defineProps({
    item: {
        type: Object,
        default: () => { }

    }

});
</script>

<style lang="scss" scoped>
section {
    background: #fff;
    padding: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

section:hover {
    box-shadow: 0px 0px 20px -1px #cbcbcb;
    transition: box-shadow 0.5s;
}

section .pic {
    float: left;
    width: 240px;
    height: 140px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

section .pic a {
    display: block;
    width: 240px;
    height: 140px;
    overflow: hidden;
}

section .pic span {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50px;
    background: #f81580;
    font-weight: bold;
    color: #fff;
    text-align: center;
    right: -20px;
    top: 50px;
    display: block;
    line-height: 40px;
}

section .pic a img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

section .intro {
    float: left;
    width: 450px;
    margin-left: 15px;
    background: url(https://admin.hqx.com.cn/Public/Travel/images/linelist/s_11.png) right center no-repeat;
    padding-right: 15px;
}

section .intro h3 {
    font-size: 16px;
}

section .intro h3 a {
    color: #000;
    transition: color 0.3s;
}

section .intro h3 a:hover {
    color: #f81580;
}

section .intro h3 span {
    color: #ff6e26;
}

section .intro h3 span a {
    color: #ff6e26;
}

section .intro .sub_title {
    padding-left: 10px;
}

section .intro .city_title {
    padding-left: 10px;
    margin-bottom: 2px;
}

section .intro .city_title span {
    padding: 0 3px;
    font-weight: bold;
    color: #000;
}

section .intro .ts {
    padding-left: 10px;
    color: #f33;
}

section .intro .ts span {
    padding: 0 3px;
    font-weight: bold;
    color: #50b400;
}

section .intro .date {
    padding-left: 10px;
}

section .intro .date a {
    padding-right: 10px;
}

section .intro .date a.b {
    background: url(https://admin.hqx.com.cn/Public/Travel/images/linelist/q_11.png) right center no-repeat;
    padding-left: 10px;
}

section .right {
    float: right;
    width: 160px;
    margin-right: 10px;
    margin-top: 15px;
}

section .right .price {
    text-align: center;
    color: #f81580;
}

section .right .price span {
    font-size: 13px;
}

section .right .price strong {
    font-size: 30px;
    font-weight: bold;
}

section .right .price font {
    color: #999;
    font-size: 12px;
}

section .right .buttom a {
    font-weight: bold;
    position: relative;
    width: 130px;
    margin: 5px auto;
    display: block;
    color: #fff;
    font-size: 16px;
    border-radius: 3px;
    background: #f81580;
    height: 40px;
    line-height: 40px;
    text-align: center;
}

section .right .buttom a span {
    display: block;
    position: absolute;
    width: 46px;
    height: 33px;
    left: 0px;
    top: -10px;
}

section .right .buttom a span img {
    display: none;
}

section .right .txt {
    font-size: 12px;
    line-height: 25px;
}

section .right .txt span {
    color: #f81580;
}

.link:hover,
.server-table i.el-tooltip:hover {
    /* 鼠标变手 */
    cursor: pointer;
    /* 链接变颜色 */
    color: #409eff;
}

.overflow {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.banner .banner-item {
    width: 750px;
    height: 360px;
}

.banner a .img {
    width: 100%;
    height: 100%;
}

/* 媒体查询,当屏幕小于1520px时展示小屏样式 */
@media (max-width: 1520px) {
  
  section .intro{
  width:310px;
}
section .pic{
  width: 220px;
}
section .pic a {
  width: 220px;
}
}

</style>